<?php
/**
 * missing parameters exception class
 *
 * @author raphael seebacher <raphasee@ee.ethz.ch>
 * @version 0.01
 */
class missing_parameters extends error {
    protected $error;

    public function __construct($missing_parameter_array) {
        parent::__construct('Not all mandatory parameters have been provided.');

        if (is_array($missing_parameter_array)) {
            $this->error['missing_parameters'] = $missing_parameter_array;
        }
    }

    public function getResponse() {
        return $this->error;
    }
}
?>